<?php
	//Busco las configuraciones de la web
	$configuracion = $this->m_configuracion->getConfiguracion();
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<!-- start: Meta -->
	<meta charset="utf-8">
	<title><?php echo($configuracion->row()->titulo); ?> - Panel de Administraci&oacute;n</title>
	<meta name="description" content="<?php echo($configuracion->row()->titulo); ?> - Panel de Administraci&oacute;n">
	<meta name="author" content="VeemeSoft">
	<!-- end: Meta -->
	
	<!-- start: Mobile Specific -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- end: Mobile Specific -->
	
	<!-- start: CSS -->
	<link id="bootstrap-style" href="<?php echo(base_url()); ?>bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link href="<?php echo(base_url()); ?>bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
	<link id="base-style" href="<?php echo(base_url()); ?>bootstrap/css/style.css" rel="stylesheet">
	<link id="base-style-responsive" href="<?php echo(base_url()); ?>bootstrap/css/style-responsive.css" rel="stylesheet">
	
	<!--[if lt IE 7 ]>
	<link id="ie-style" href="<?php echo(base_url()); ?>bootstrap/css/style-ie.css" rel="stylesheet">
	<![endif]-->
	<!--[if IE 8 ]>
	<link id="ie-style" href="<?php echo(base_url()); ?>bootstrap/css/style-ie.css" rel="stylesheet">
	<![endif]-->
	<!--[if IE 9 ]>
	<![endif]-->
	
	<!-- end: CSS -->	
	
	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	
	<!-- start: Favicon -->
	<link rel="shortcut icon" href="<?php echo(base_url()); ?>img/settings.png">
	<!-- end: Favicon -->
	
	<!-- start: JavaScript-->
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery-1.9.1.min.js"></script>
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery-migrate-1.0.0.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery-ui-1.10.0.custom.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.ui.touch-punch.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/bootstrap.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.cookie.js"></script>	
	<script src='<?php echo(base_url()); ?>bootstrap/js/fullcalendar.min.js'></script>	
	<script src='<?php echo(base_url()); ?>bootstrap/js/jquery.dataTables.min.js'></script>
	<script src="<?php echo(base_url()); ?>bootstrap/js/excanvas.js"></script>
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.flot.min.js"></script>
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.flot.pie.min.js"></script>
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.flot.stack.js"></script>
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.flot.resize.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.chosen.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.uniform.min.js"></script>		
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.cleditor.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.noty.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.elfinder.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.raty.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.iphone.toggle.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.uploadify-3.1.min.js"></script>
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.gritter.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.imagesloaded.js"></script>		
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.masonry.min.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.knob.js"></script>	
	<script src="<?php echo(base_url()); ?>bootstrap/js/jquery.sparkline.min.js"></script>
	<script src="<?php echo(base_url()); ?>bootstrap/js/custom.js"></script>
	
	<!-- ......................................CODIGO JS DE LA WEB ...............................................-->
	<!-- Fuente: http://www.texotela.co.uk/code/jquery/numeric/ -->
	<script type="text/javascript" src="<?php echo base_url(); ?>jquery/jquery.numeric.js"></script>
	<!-- Fuente: http://digitalbush.com/projects/masked-input-plugin/ -->
	<script type="text/javascript" src="<?php echo base_url(); ?>jquery/jquery.maskedinput.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>js/funciones.js"></script>
	<!-- end: JavaScript-->
</head>

<body style="padding-top:50px">
	<div id="overlay">
		<ul>
		  <li class="li1"></li>
		  <li class="li2"></li>
		  <li class="li3"></li>
		  <li class="li4"></li>
		  <li class="li5"></li>
		  <li class="li6"></li>
		</ul>
	</div>
	
	<!-- start: Header (Menu Superior) -->
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="<?php echo(site_url("inicio")); ?>"><!--<img width="75" alt="VeemeSoft" src="<?php //echo(base_url()); ?>img/logoTransp2.png" />--><span class="hidden-phone"><?php echo($configuracion->row()->titulo); ?> - Panel de Administraci&oacute;n</span></a>
								
				<!-- start: Header Menu -->
				<div class="nav-no-collapse header-nav">
					<ul class="nav pull-right">
						<!-- start: User Dropdown -->
						<li class="dropdown">
							<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
								<i class="icon-user icon-white"></i>
								<span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li><a href="<?php echo(site_url("inicio")); ?>"><i class="icon-home"></i> P&aacute;gina Principal </a></li>
								<li><a href="<?php echo(base_url()); ?>usuario/cerrarSesion"><i class="icon-off"></i> Cerrar Sesi&oacute;n </a></li>
							</ul>
						</li>
						<!-- end: User Dropdown -->
					</ul>
				</div>
				<!-- end: Header Menu -->				
			</div>
		</div>
	</div>
	<!-- end: Header -->
	
	<!-- start: Cuerpo Principal (Todo menos la barra superior) -->
	<div class="container-fluid">
		<div class="row-fluid">				
			<!-- start: Main Menu (Menu Izquierdo) -->
			<div class="span2 main-menu-span">
				<div class="nav-collapse sidebar-nav">
					<ul class="nav nav-tabs nav-stacked main-menu">
						<li><a href="<?php echo(site_url("inicio")); ?>"><i class="icon-home icon-white"></i><span class="hidden-tablet"> P&aacute;gina Principal </span></a></li>
						
						<?php if($this->session->userdata('tipoUsuarioLog') == '1' || $this->session->userdata('tipoUsuarioLog') == 'Admin Root'){ ?>
						<li><a href="<?php echo(site_url("configuracion/abrirPantallaModificar")); ?>"><i class="fa-icon-cogs icon-white"></i><span class="hidden-tablet"> Configuraci&oacute;n </span></a></li>
						<?php } ?>
						
						<?php if($this->session->userdata('tipoUsuarioLog') == '1' || $this->session->userdata('tipoUsuarioLog') == 'Admin Root'){ ?>
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-user icon-white"></i><span class="hidden-tablet"> Clientes </span></a>
							<ul>
								<li><a class="submenu" href="<?php echo(site_url("cliente/consultar")); ?>"><i class="icon-list"></i><span class="hidden-tablet"> Consultar Clientes </span></a></li>
								<li><a class="submenu" href="<?php echo(site_url("cliente/abrirPantallaCrear")); ?>"><i class="icon-ok"></i><span class="hidden-tablet"> Crear Cliente </span></a></li>								
							</ul>	
						</li>
						<?php } ?>
						
						<?php if($this->session->userdata('tipoUsuarioLog') == '1' || $this->session->userdata('tipoUsuarioLog') == 'Admin Root'){ ?>
						<li>
							<a class="dropmenu" href="#"><i class="icon-bullhorn icon-white"></i><span class="hidden-tablet"> Publicaciones </span></a>
							<ul>
								<li><a class="submenu" href="<?php echo(site_url("publicacion/consultar/0")); ?>"><i class="icon-list"></i><span class="hidden-tablet"> Consultar Publicaciones </span></a></li>
								<li><a class="submenu" href="<?php echo(site_url("publicacion/abrirPantallaCrear/0")); ?>"><i class="icon-ok"></i><span class="hidden-tablet"> Crear Publicaci&oacute;n </span></a></li>								
							</ul>						
						</li>
						<?php } ?>
						
						<?php if($this->session->userdata('tipoUsuarioLog') == '1' || $this->session->userdata('tipoUsuarioLog') == 'Admin Root'){ ?>
						<li>
							<a class="dropmenu" href="#"><i class="icon-user icon-white"></i><span class="hidden-tablet"> Usuarios </span></a>
							<ul>
								<li><a class="submenu" href="<?php echo(site_url("usuario/consultar")); ?>"><i class="icon-list"></i><span class="hidden-tablet"> Consultar Usuarios </span></a></li>
								<li><a class="submenu" href="<?php echo(site_url("usuario/abrirPantallaCrear/0")); ?>"><i class="icon-ok"></i><span class="hidden-tablet"> Crear Usuario </span></a></li>								
							</ul>
						</li>
						<?php } ?>
						
						<?php if($this->session->userdata('tipoUsuarioLog') == '2'){ ?>
						<li><a href="<?php echo(site_url("cliente/misDatos/".$this->session->userdata('idClienteLog'))); ?>"><i class="icon-user icon-white"></i><span class="hidden-tablet"> Mis Datos </span></a></li>
						<?php } ?>
						
						<li><a href="<?php echo(site_url("usuario/miUsuario/".$this->session->userdata('idUsuarioLog'))); ?>"><i class="icon-user icon-white"></i><span class="hidden-tablet"> Mi Usuario </span></a></li>
						
						<?php if($this->session->userdata('tipoUsuarioLog') == '2'){ ?>
						<li><a href="<?php echo(site_url("miPublicacion/consultar/".$this->session->userdata('idClienteLog')."/0")); ?>"><i class="icon-bullhorn icon-white"></i><span class="hidden-tablet"> Mis Publicaciones </span></a></li>
						<?php } ?>
						
						<li><a href="<?php echo(base_url()); ?>usuario/cerrarSesion"><i class="icon-off icon-white"></i><span class="hidden-tablet"> Cerrar Sesi&oacute;n </span></a></li>
					</ul>
				</div><!--/.well -->
			</div><!--/span-->
			<!-- end: Main Menu -->
			
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			
			
			<!-- start: Content (Todo, menos menu superior, menu izquierdo y pie del sistema) -->
			<div id="content" class="span10">				
				<?php if(isset($vista)){
					echo($vista);
				} else { ?>				
				<!-- start: Barra de estado -->
				<div>
					<hr>
					<ul class="breadcrumb">
						<li>
							<a href="<?php echo(site_url("inicio")); ?>">Home</a> <span class="divider">/</span>
						</li>
					</ul>
					<hr>
				</div>
				<!-- end: Barra de estado -->
				
				<!-- start: Grafico, barra de progreso, listas de tareas -->
				<div class="row-fluid">
					<!-- start: Datos de Contacto -->
					<div class="box span4 noMargin" onTablet="span12" onDesktop="span4">
						<div class="box-header">
							<h2><i class="fa-icon-phone"></i><span class="break"></span>C&oacute;mo Contactarnos?</h2>
							<div class="box-icon">
								<a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
							</div>
						</div>
						<div class="box-content">
							<p>
								<?php if($configuracion->row()->telefono != ""){ ?> <strong> Tel&eacute;fono: </strong><?php echo($configuracion->row()->telefono); ?><br/><?php } ?>
								<?php if($configuracion->row()->email != ""){ ?> <strong> Email: </strong><?php echo($configuracion->row()->email); ?><br/><?php } ?>
								<?php if($configuracion->row()->facebook != ""){ ?> <strong> Facebook: </strong><a href="http://<?php echo($configuracion->row()->facebook); ?>" target="_blank"><?php echo($configuracion->row()->facebook); ?></a><br/><?php } ?>
								<?php if($configuracion->row()->twitter != ""){ ?> <strong> Twitter: </strong><a href="http://<?php echo($configuracion->row()->twitter); ?>" target="_blank"><?php echo($configuracion->row()->twitter); ?></a><br/><?php } ?>
								<?php if($configuracion->row()->web1 != ""){ ?> <strong> Web 1: </strong><a href="http://<?php echo($configuracion->row()->web1); ?>" target="_blank"><?php echo($configuracion->row()->web1); ?></a><br/><?php } ?>
								<?php if($configuracion->row()->web2 != ""){ ?> <strong> Web 2: </strong><a href="http://<?php echo($configuracion->row()->web2); ?>" target="_blank"><?php echo($configuracion->row()->web2); ?></a><br/><?php } ?>
								
								<?php if($configuracion->row()->horarioAtencion != ""){ ?> <strong> Horario de Atenci&oacute;n: </strong><?php echo($configuracion->row()->horarioAtencion); ?><br/><?php } ?>
								<?php if($configuracion->row()->direccion != ""){ ?> <strong> Direcci&oacute;n: </strong><?php echo($configuracion->row()->direccion); ?><br/><?php } ?>
								<strong><?php echo($configuracion->row()->localidad); ?> - <?php echo($configuracion->row()->provincia); ?> - <?php echo($configuracion->row()->pais); ?></strong>
							</p>
						</div>
					</div>
					<!-- end: Datos de Contacto -->
				</div>
				<!-- end: Grafico, barra de progreso, listas de tareas -->				
				<hr>
				<!-- end: Content -->
			</div><!--/#content.span10-->
			<?php } ?>
		</div><!--/fluid-row-->
					
		<div class="clearfix"></div>
		
		<!-- start: Pie de la web -->
		<footer>
			<p>
				<span style="text-align:left;float:left">&copy; <a href="<?php echo(site_url("inicio")); ?>"><?php echo($configuracion->row()->titulo); ?> - Panel de Administraci&oacute;n</a> 2014</span>
				<span style="text-align:right;float:right">Desarrollado por: <a href="http://www.veemesoft.com.ar/" target="_blank">VeemeSoft</a></span>
			</p>
		</footer>
		<!-- end: Pie de la web -->
	</div><!--/.fluid-container-->
	<!-- end: Cuerpo Principal (Todo menos la barra superior) -->
</body>
</html>
